<!DOCTYPE html>
<script src="../../../resources/js-test.js"></script>
<div id="div"></div>
<iframe name="f"></iframe>
<a href="http://webkit.org" name="a"></a>
<script>

window.x = 1;
Object.getPrototypeOf(window).y = 2;

</script>
<script>

shouldBeTrue('window.hasOwnProperty("Element")');
shouldBeTrue('window.hasOwnProperty("x")');
shouldBeFalse('window.hasOwnProperty("y")');
shouldBeTrue('window.hasOwnProperty("f")');
shouldBeTrue('window.hasOwnProperty("div")');
shouldBeTrue('window.hasOwnProperty("a")');

</script>
<script>

var Element;
shouldNotBe('Element', 'undefined');

var x;
shouldBe('x', '1');

var y;
shouldBeUndefined('y');

var f;
shouldBeUndefined('f');

var div;
shouldBeUndefined('div');

var a;
shouldBeUndefined('a');

</script>
